<template>
  <div class="payBill">
    <div class="payBill_back">
      <div class="payBill_back_left"><van-icon name="arrow-left" /></div>
      <div class="payBill_back_right">确定订单</div>
    </div>
    <div><steps :active="active" /></div>
    <div class="payBill_middle">
      <div class="payBill_middle_box">
        <div>问诊费用</div>
        <div>$39</div>
      </div>
      <div class="payBill_middle_box">
        <div>问诊费用</div>
        <div>$39</div>
      </div>
    </div>
    <div class="payBill_bottom">选择支付方式</div>
    <div class="payBill_pay">
      <div class="payBill_pay_box">
        <div class="payBill_pay_box_name">微信支付</div>
        <div class="payBill_pay_box_checkbox">6</div>
      </div>
      <div class="payBill_pay_box">
        <div class="payBill_pay_box_name">支付宝支付</div>
        <div class="payBill_pay_box_checkbox">6</div>
      </div>
    </div>
  </div>
</template>

<script>
import { reactive, toRefs } from "vue";
import steps from "@/components/commonComponents/steps.vue";
export default {
  name: "payBill",
  components: { steps },
  setup() {
    const data = reactive({
      active: 3,
    });
    return {
      ...toRefs(data),
    };
  },
};
</script>

<style lang="scss" scope>
.payBill {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background-color: #fafafa;
  z-index: 10;
  overflow-y: scroll;
  &_pay {
    padding: 5px 20px;
    background-color: #efefef;
    &_box {
      padding: 5px 0;
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin: 10px 0;
    }
  }
  &_bottom {
    padding: 20px;
    font-size: 16px;
    color: #cccccc;
    margin-top: 20px;
  }
  &_middle {
    width: 100%;
    padding: 0 20px;
    background-color: #efefef;
    &_box {
      padding: 15px 0;
      display: flex;
      align-items: center;
      font-size: 15px;
      justify-content: space-between;
      border-bottom: 1px solid #ccc;
    }
  }
  &_back {
    width: 100%;
    background-color: #efefef;
    height: 60px;
    display: flex;
    align-items: center;
    padding-left: 20px;
    &_right {
      font-size: 18px;
      font-weight: 540;
    }
    &_left {
      width: 10%;
      height: 100%;
      display: flex;
      align-items: center;
    }
  }
}
</style>
